package top.waikin.mooc.portal.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
public class CourseCommentDto {
    @Length(min = 5)
    @ApiModelProperty("评论内容")
    private String content;

    @Min(0)
    @Max(5)
    @ApiModelProperty("评论分数 0-5分")
    private Integer mark;
}
